%% -*- mode: erlang; -*-
{require_min_otp_vsn, "19"}.

{erl_opts,
 [fail_on_warning,
  debug_info,
  warn_unused_vars,
  warn_unused_import,
  warn_exported_vars]}.

{xref_checks,
 [undefined_function_calls,
  undefined_functions,
  locals_not_used,
  %% exports_not_used,
  deprecated_function_calls,
  deprecated_functions
 ]}.

{project_plugins, [
    rebar3_proper
]}.

{xref_ignores,
 [
  {smtp_rfc822_parse, return_error, 2}
 ]}.

{deps, [{ranch, ">= 1.7.0"},
        {hut, "1.3.0"}]}.

{profiles,
 [
  {dialyzer,
   [
    {deps,
     [
      {eiconv, "1.0.0"}
     ]
    },
    {dialyzer,
     [
      {plt_extra_apps,
       [
        eiconv,
        ssl,
        hut
       ]
      },
      {warnings,
       [error_handling,
        unknown
       ]}
     ]}
   ]},
  {ranch20,
   [{deps, [{ranch, "2.0.0"}]}]},
  {test,
   [
    {cover_enabled, true},
    {cover_print_enabled, true},
    {deps,
     [
      {eiconv, "1.0.0"},
      {proper, "1.3.0"}
     ]}
   ]}
 ]}.
